package modele;

import java.util.LinkedList;

public abstract class AbsPiece {
    protected String position;
    protected int type;
    
    public AbsPiece(String position, int type) {
        this.type = type;
        this.position = position;
    }
    
    public abstract LinkedList<String> getPossibilite(int[][] region);
    
    public int getType() {
        return type;
    }
    
    public String getPosition() {
        return position;
    }
    
    public void setPosition(String mouvement) {
        position = mouvement;
    }
    
    public String toString() {
        return type + " : " + position;
    }
}
